// components/order-review/review-action-bar/index.js
Component({
    properties: {
        price: {
            type: Number,
            optionalTypes: [String],
            value: 0,
        },
        discount: {
            type: Number,
            optionalTypes: [String],
            value: 0,
        },
        unit: {
            type: String,
            value: '￥',
        },
        btnText: {
            type: String,
            value: '立即支付',
        },
    },
    methods: {
        // 支付事件
        payAction: function () {
            console.log('ReviewActionBar => 触发支付事件');
            this.triggerEvent('pay');
        },
    }
})
